package com.github.raffle.behavior.state.color;


public class BlackState implements ColorState {

	@Override
	public void handlePush(ColorContext ctx) {
		System.out.println("变成红色");
		ctx.setState(new RedState());
	}

	@Override
	public void handlePull(ColorContext ctx) {
		System.out.println("变成绿色");
		ctx.setState(new GreenState());
	}

	@Override
	public Color getColor() {
		return Color.BLACK;
	}

}
